<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
<%
String attachId = (String)request.getAttribute("attachId");
String attachInput = (String)request.getAttribute("attachInput");
String msgSpan = (String)request.getAttribute("msgSpan");
String submitBtn = (String)request.getAttribute("submitBtn");
System.err.println(attachId + "===" + attachInput + "===" + msgSpan + "===" + submitBtn);
%>

parent.document.getElementById("<%=attachInput%>").value="<%=attachId%>";
parent.document.getElementById("<%=msgSpan%>").innerHTML = "<font color='green'>上传文件成功!</font>";    
parent.document.getElementById("<%=submitBtn%>").disable = "disabled";      
</script>  
</body>
</html>